package com.itmk.web.comments.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName("comments")
public class Comments {
    @TableId(type = IdType.AUTO)
    private Integer commentId;

    // 关联信息
    private Integer orderId;
    private Integer goodsId;

    // 买家信息
    private Integer buyerId;
    private String buyerContent;
    private Integer buyerRating;  // 买家给的评分

    // 卖家信息
    private Integer sellerId;
//    private String sellerContent;
//    private Integer sellerRating; // 卖家给的评分

    private Date createdAt;
    private Date updatedAt;


    @TableField(exist=false)
    private String buyerNickname;
    @TableField(exist=false)
    private String buyerAvatar;

}
